import http from "../request";
const apibase = "/api/Material";

//获取产品
var getMaterials = function (data) {
  return new Promise((resolve, reject) => {
    http
      .post(apibase + `/GetMaterials`,data)
      .then((res) => {
        resolve(res);
      })
      .catch((error) => {
        reject(error);
      });
  });
};

export { getMaterials};